import request from '@/utils/request'

export function caseNumber() {
  return request({
    url: '/system/Register/caseNumber',
    method: 'get'
  })
}

// 查询挂号列表
export function listRegister(query) {
  return request({
    url: '/system/Register/list',
    method: 'get',
    params: query
  })
}

// 查询挂号详细
export function getRegister(Id) {
  return request({
    url: '/system/Register/' + Id,
    method: 'get'
  })
}

// 新增挂号
export function addRegister(data) {
  return request({
    url: '/system/Register',
    method: 'post',
    data: data
  })
}

// 修改挂号
export function updateRegister(data) {
  return request({
    url: '/system/Register',
    method: 'put',
    data: data
  })
}

// 删除挂号
export function delRegister(Id) {
  return request({
    url: '/system/Register/' + Id,
    method: 'delete'
  })
}
